const _resolve = require('path').resolve;
const resolvePath = (dir) => _resolve(__dirname, dir);

module.exports = {
  publicPath: './',
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolvePath('src'))
      .set('@assets', resolvePath('src/assets'))
      .set('@views', resolvePath('src/views'))
      .set('@components', resolvePath('src/components'));
    return config;
  },
  lintOnSave: false
}
